package com.jc.service.menu;

import com.jc.ds.model.Permission;

import java.util.List;
import java.util.Map;

public interface MenuService {


    /**
     * 所有菜单
     * */
    List<Map<String, Object>> queryMenuList();

    /**
     * 父查子菜单
     */
    Map<String, Object> queryChildMenu(String fatherName);

    /**
     * 更换主菜单
     */
    Map<String,Object> changFMenu(String saveFName, String saveZId, Map<String, Object> saveF);
    /**
     * 保存父级菜单
     */
    Map<String, Object> saveFatherMenu(Map<String, Object> param);

    /**
     * 保存父级菜单
     */
    Map<String, Object> saveSmallMenu(Map<String, Object> param);

    /**
     * 修改父级名字
     */

    Map<String, Object> updateFName(Map<String, Object> param);

    /**
     * 删除子菜单
     */
    Map<String,Object> delSName(String id);

    /**
     * 更具id查子菜单
     * */
    Map<String,Object> queryZMenuById(String id);

    /**
     * 根据父id查子菜单
     * */
    Map<String,Object> queryZMenuByFId(String id);

    /**
     * 菜单权限
     * */
    List<Permission> menuListShiro(Long userId);

    /**
     * 根据菜单找到对应的btn
     */
    Map<String,Object> findMenusBtns(Map<String, Object> map);

    /**
     * 赋予角色按钮
     */
    Map<String,Object> addBtnsShiroToRole(Map<String, Object> map);

    /**
     * 根据角色查找按钮
     */
    Map<String,Object> queryBtnsByRoleId(Map<String, Object> map);

    /**
     * all in this
     */
    Map<String,Object> allInThis();

}
